
/**
 *  \file rfcomm_support.h
 *
 *  This file contains RFCOMM extended support APIs which are used in
 *  testing individual RFCOMM procedures.
 */

/*
 *  Copyright (C) 2013. Mindtree Ltd.
 *  All rights reserved.
 */

#ifndef _H_RFCOMM_SUPPORT_
#define _H_RFCOMM_SUPPORT_

#ifdef RFCOMM_ENABLE_SUPPORT_APIS

/* --------------------------------------------- Header File Inclusion */
#include "BT_rfcomm_api.h"


/* --------------------------------------------- Global Definitions */

/* Following Event Identifiers are supported for support APIs */
#define RFCOMM_DLC_OPEN                         0x31
#define RFCOMM_DLC_CLOSE                        0x32
#define RFCOMM_SESSION_OPEN                     0x33
#define RFCOMM_SESSION_CLOSE                    0x34


/* --------------------------------------------- Function Declarations */

/* To Open an RFCOMM Sessions */
API_RESULT bt_rfcomm_session_open
           (
               /* IN */  RFCOMM_HANDLE *    handle
           );

/* To Close an RFCOMM Sessions */
API_RESULT bt_rfcomm_session_close
           (
               /* IN */  RFCOMM_HANDLE *    handle
           );

/* To Open an RFCOMM DLCI */
API_RESULT bt_rfcomm_dlc_open
           (
               /* INOUT */  RFCOMM_HANDLE *    handle
           );

/* To Close an RFCOMM DLCI */
API_RESULT bt_rfcomm_dlc_close
           (
               /* IN */  RFCOMM_HANDLE *    handle
           );

#endif /* RFCOMM_ENABLE_SUPPORT_APIS */

#ifdef RFCOMM_TEST_MODE
API_RESULT BT_rfcomm_dlc_unsupported ( RFCOMM_HANDLE *handle );
API_RESULT BT_rfcomm_pn_frame_size ( UINT16 size );
#endif /* RFCOMM_TEST_MODE */

#endif /* _H_RFCOMM_SUPPORT_ */


